//
//  Task.h
//  TaskManager
//
//  Created by Dmitriy on 31.05.13.
//  Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Task : NSObject <NSCoding>
{
    UILocalNotification *notification;
}
@property (copy,readwrite, nonatomic) NSDate *taskTime;
@property (copy,readwrite, nonatomic) NSString *taskName;
@property (assign,readwrite,nonatomic) NSTimeInterval notificationInterval;


-(void) toggleNotification;
-(BOOL) hasNotification;
-(id) init;
-(id) initWithName:(NSString*)name
              time:(NSDate*)time;
-(void)modifyWithName:(NSString*)name 
             WithTime:(NSDate*)time;
-(NSDate*) notificationTime;
@end